package fanshe.second.demo02;

/**
 * @author Mr.ma
 * @since 2022/10/27 20:07
 **/
public class Test02 {
    public static void main(String[] args) throws Exception{
        Class<Student> studentClass = Student.class;
        Class<?> aClass = Class.forName("fanshe.second.demo02.Student");
        Student student = new Student();
        Class<? extends Student> aClass1 = student.getClass();
        Student student1 = studentClass.newInstance();
        Object o = aClass.newInstance();
        Student student2 = aClass1.newInstance();
    }
}
class Student{}